# Copyright (c) 2008-2009 Mikhail Chernov 
#
# This file is part of dcExplorer.
#
# dcExplorer is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# dcExplorer is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with dcExplorer.  If not, see <http://www.gnu.org/licenses/>.

# Scripting class with extensions
package dcExplorer::core::Prototype;
use strict;
use utf8;
use core::Object;
use base 'dcExplorer::core::Object';

@dcExplorer::core::Prototype::props = 
	qw(building_id cost_main cost_second cost_money cost_pepl support_main support_second requires_pepl stealth_price stealth_support hit_points bonus_o bonus_e bonus_m bonus_production stealth_lvl scan_strength detect_range build_speed laser_damage laser_number bomb_damage bomb_number is_building is_ground_unit is_space_ship is_transportable fly_range fly_speed maxcount weight class offensive laser_targets bomb_targets laser_dr bomb_dr laser_ar bomb_ar levelable s_name s_description carapace color buildingactions archived carrier_capacity transport_capacity);

# Construction methods

sub new 
{
	my $proto = shift;
	my $class = ref($proto) || $proto;
	my $self = $class->SUPER::new;
	$self->{'building_id'} = shift;
	$self->{Actions} = [];
	bless ($self, $class);
	return $self;
}

# Scripting extension

sub getActions
{
	my $self = shift;
	return $self->{Actions};
}

1;
